add_executable(mul-thread main.c)
target_link_libraries(mul-thread lib)
target_include_directories(mul-thread PUBLIC
                          "${PROJECT_BINARY_DIR}"
                          "${PROJECT_SOURCE_DIR}/lib"
                          )
find_package(Threads)
target_link_libraries(mul-thread ${CMAKE_THREAD_LIBS_INIT})

add_executable(pool pool.c)
target_link_libraries(pool lib)
target_include_directories(pool PUBLIC
                          "${PROJECT_BINARY_DIR}"
                          "${PROJECT_SOURCE_DIR}/lib"
                          )
find_package(Threads)
target_link_libraries(pool ${CMAKE_THREAD_LIBS_INIT})

add_executable(thread-example thread-example.c)
find_package(Threads)
target_link_libraries(thread-example ${CMAKE_THREAD_LIBS_INIT})